Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two samples :-
get_replication_groups.py
sync_replication_group.py
The samples have been tested on the replication testbed for vvol.
root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 final_sample/get_replication_groups.py -s 10.193.33.76 -u '' -p ''
Replication group Id:
device Id: 21350236-1d95-49d9-906d-c30f8f4fab41
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET
Replication group Id:
device Id: 2bb243e8-ae5d-4328-afb3-d54b9311dcd2
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET
Replication group Id:
device Id: 2fca2036-291b-41ce-a780-886ff60a283f
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
State: TARGET
Replication group Id:
device Id: 35765be0-ede9-4412-8926-e11ac034fa8d
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
State: TARGET
Replication group Id:
device Id: c3bfb139-a2b9-4408-98ab-c3a29a5a5628
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
State: INTEST
Replication group Id:
device Id: eb244ec0-fb05-4c10-a588-e6e750e4c680
fault domain Id: 1b542711-9bcb-48b0-941d-8c45a3fbef6e
Source Replication Group Name: cokerg2
State: SOURCE
root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 final_sample/sync_replication_group.py -s 10.193.33.76 -u '' -p '' -r '21350236-1d95-49d9-906d-c30f8f4fab41' -n 'pit82'
(sms.TaskInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
key = 'SmsTask-135',
task = 'sms.Task:SmsTask-135',
object = 'sms.provider.VasaProvider:vasaProvider-12',
error = ,
result = ,
startTime = 2020-06-19T08:00:01.416Z,
completionTime = ,
state = 'running',
progress = 1
}
root@sc-rdops-vm12-dhcp-120-130:~/pyvmomi_testing# python3 get_target_point_in_time_replicas.py -s 10.193.33.76 -u '' -p '' -r '21350236-1d95-49d9-906d-c30f8f4fab41' -n 'pit82'
pitName: pit82
Creation Time: 2020-06-19 08:00:02+00:00
Replication Group:
device group Id: 21350236-1d95-49d9-906d-c30f8f4fab41
fault domain Id: faac8530-4b7c-4e6e-a179-fc429573e189
Pit Id: 15ce6429-6e95-40d4-8dce-fe5def40b9c2